﻿<UserControl x:Class="WpfChess.WpfPresentation.View.AlertView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Controls="clr-namespace:WpfLab.Controls;assembly=WpfLab.Controls" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Controls:ModalDialogPopup IsOpen="{Binding Path=IsOpen, Mode=TwoWay}">
        <Controls:ModalDialogPopup.HostedContent>
            <ContentControl>
                <Grid Height="200" Width="300">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="30"/>
                    </Grid.RowDefinitions>
                    <TextBlock Grid.Row="0" Text="{Binding Path=MessageText, Mode=OneWay}" 
                               VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" />
                	<Button Style="{DynamicResource SimpleButton}" Command="{Binding Path=HideAlertCommand}" Grid.Row="1" Width="80" Content="Hide" />
                </Grid>
            </ContentControl>
        </Controls:ModalDialogPopup.HostedContent>
    </Controls:ModalDialogPopup>
</UserControl>
